package com.example.team.rest.console.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.example.team.rest.common.datasources.DS;

import com.example.team.rest.console.sys.dao.SysDictDao;
import com.example.team.rest.console.sys.entity.SysDictEntity;
import com.example.team.rest.console.sys.service.SysDictService;



@Service("sysDictService")
public class SysDictServiceImpl implements SysDictService {
    @Autowired
    private SysDictDao sysDictDao;

    @DS("first")
    @Override
    public SysDictEntity queryObject(String uuid){
        return sysDictDao.queryObject(uuid);
    }

    @DS("first")
    @Override
    public List<SysDictEntity> queryList(Map<String, Object> map){
        return sysDictDao.queryList(map);
    }

    @DS("first")
    @Override
    public int queryTotal(Map<String, Object> map){
        return sysDictDao.queryTotal(map);
    }

    @DS("first")
    @Override
    public void save(SysDictEntity sysDict){
            sysDictDao.save(sysDict);
    }

    @DS("first")
    @Override
    public void update(SysDictEntity sysDict){
            sysDictDao.update(sysDict);
    }

    @DS("first")
    @Override
    public void delete(String uuid){
            sysDictDao.delete(uuid);
    }

    @DS("first")
    @Override
    public void deleteBatch(String[] uuids){
            sysDictDao.deleteBatch(uuids);
    }

}
